package com.itheima.springboot_20_jetcache.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.springboot_20_jetcache.domain.Book;

public interface IBookService extends IService<Book> {//这能快速的构建一个service接口,从而
    //从而避免建立多个事物的service占用大量时间
    IPage<Book> getPage(int currentPage,int pageSize);
    IPage<Book> getPage(int currentPage,int pageSize,String name);
    public Book getById(Integer id);
    public Integer testSetStringCache(Integer id,Integer id2,Integer id3);
    public Integer testJetCacheInteger (Integer id,Integer id2,Integer id3,Integer id4) ;
    public Book testJetCacheInteger2 (Integer id, Integer id2, Integer id3, Integer id4, Integer id5);
    public Boolean testJetCacheInteger2Update (Book book);
    public Integer testJetCacheInteger2Delete (Integer id);
}
